package edu.ccut.saturn.manager.logger.core;

import java.util.ArrayList;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.ILogger;
import edu.ccut.saturn.component.IParameterContext;
import edu.ccut.saturn.component.SaturnLoggerManager;

public class QueryLoggers extends DefaultComponent {
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		
		ArrayList<ILogger> loggerList = new ArrayList<ILogger>();		
		loggerList.addAll(SaturnLoggerManager.getInstance().getSaturnLoggers());
		
		parameterContext.setParameter(0, loggerList);
	}
}